package com.coder4j;

import com.coder4j.starter.web.util.SpringContextUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 应用启动类
 * 注意要将 com.coder4j.* 添加到扫描路径中 @ComponentScan({"com.coder4j.*","com.demo"})
 * @author keller
 * @date 2024-03-30 10:34:08
 */
@SpringBootApplication
//@ComponentScan({"com.coder4j.*"})
@EnableScheduling
public class Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        SpringContextUtils.setApplicationContext(context);
    }
}
